home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / chacl.z / chacl
Text File  |  1998-10-20  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCHHHHAAAACCCCLLLL((((1111))))                                                              CCCCHHHHAAAACCCCLLLL((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      chacl - change the access control list of a file or directory
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      cccchhhhaaaaccccllll aaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
  13.      cccchhhhaaaaccccllll ----bbbb aaaaccccllll ddddaaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
  14.      cccchhhhaaaaccccllll ----dddd ddddaaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _c_h_a_c_l changes the Access Control List (see _aaaa_cccc_llll(4)) for a file or
  18.      directory.  The _----_bbbb flag indicates that there are two ACLs, the first is
  19.      the access ACL and the second the directory default ACL.  The _----_dddd flag
  20.      indicates that there are two ACLs, the first one is the directory default
  21.      ACL and the second the access ACL.  The ACL(s) specified are applied to
  22.      each file in the _pppp_aaaa_tttt_hhhh_nnnn_aaaa_mmmm_eeee arguments.
  23.  
  24.      Each ACL is a string which is processed via _aaaa_cccc_llll______ffff_rrrr_oooo_mmmm______tttt_eeee_xxxx_tttt(3c).  These
  25.      strings are made up of comma separated clauses each of which is of the
  26.      form, tag:name:perm.  Where _tttt_aaaa_gggg can be
  27.  
  28.      "user" (or "u")
  29.           indicating that the entry is a user ACL entry.
  30.  
  31.      "group" (or "g")
  32.           indicating that the entry is a group ACL entry.
  33.  
  34.      "other" (or "o")
  35.           indicating that the entry is an other ACL entry.
  36.  
  37.      "mask" (or "m")
  38.           indicating that the entry is a mask ACL entry.
  39.  
  40.      _nnnn_aaaa_mmmm_eeee is a string which is the user or group name for the ACL entry.  A
  41.      null _nnnn_aaaa_mmmm_eeee in a user or group ACL entry indicates the file owner or
  42.      owner's group.  _pppp_eeee_rrrr_mmmm is the string "rwx" where each of the entries may be
  43.      replaced by a "-" indicating no access of that type, e.g. "r-x", "--x",
  44.      "---".
  45.  
  46. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  47.      A minimum ACL:  _cccc_hhhh_aaaa_cccc_llll _uuuu_::::_::::_rrrr_wwww_xxxx_,,,,_gggg_::::_::::_rrrr_----_xxxx_,,,,_oooo_::::_::::_rrrr_----_---- _ffff_iiii_llll_eeee
  48.      The file ACL is set so that the file's owner has rwx, the file owner's
  49.      group has read and execute, and others have read only access to the file.
  50.  
  51.      An ACL that is not a minimum ACL, that is, one that specifies a user or
  52.      group other than the file's owner or owner's group, must contain a mask
  53.      entry:  _cccc_hhhh_aaaa_cccc_llll _uuuu_::::_::::_rrrr_wwww_xxxx_,,,,_gggg_::::_::::_rrrr_----_xxxx_,,,,_oooo_::::_::::_rrrr_----_----_,,,,_uuuu_::::_gggg_uuuu_eeee_ssss_tttt_::::_rrrr_----_----_,,,,_mmmm_::::_::::_rrrr_----_xxxx _ffff_iiii_llll_eeee_1111 _ffff_iiii_llll_eeee_2222
  54.  
  55.      You can use the output of _llll_ssss _----_DDDD to get the ACL argument to _cccc_hhhh_aaaa_cccc_llll.  To set
  56.      the default and access ACLs on newdir to be the same as on oldir, you
  57.      could type:  _cccc_hhhh_aaaa_cccc_llll _----_bbbb _````_llll_ssss _----_dddd_DDDD _oooo_llll_dddd_dddd_iiii_rrrr _|||| _cccc_uuuu_tttt _----_dddd_""""_[[[[_"""" _----_ffff_2222 _||||  _cccc_uuuu_tttt _----_dddd_""""_////_"""" _----_ffff_1111_````
  58.      _````_llll_ssss _----_dddd_DDDD _bbbb_aaaa_rrrr_dddd_iiii_rrrr _|||| _cccc_uuuu_tttt _----_dddd_""""_[[[[_"""" _----_ffff_2222 _||||  _cccc_uuuu_tttt _----_dddd_""""_////_"""" _----_ffff_2222 _|||| _cccc_uuuu_tttt _----_dddd_""""_]]]]_"""" _----_ffff_1111_```` _nnnn_eeee_wwww_dddd_iiii_rrrr
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCHHHHAAAACCCCLLLL((((1111))))                                                              CCCCHHHHAAAACCCCLLLL((((1111))))
  71.  
  72.  
  73.  
  74. CCCCAAAAUUUUTTTTIIIIOOOONNNNSSSS
  75.      _cccc_hhhh_aaaa_cccc_llll replaces the existing ACL.  To add or delete entries, you must
  76.      first do _llll_ssss _----_DDDD to get the existing ACL, and use the output to form the
  77.      arguments to _cccc_hhhh_aaaa_cccc_llll.
  78.  
  79. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  80.      acl(4), acl_from_text(3c).
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.